from Func_List_Files import list_PP_files
import os


# This function checks if a file name exists in the output directory otherwise it creates it.
#-----------------------------------------------------------------------------------------------------------------------------------------
def create_file (Output_Dir, File_name):

        os.chdir(Output_Dir)
        files = []
        files = list_PP_files (Output_Dir)
        test = False
        for file in files:
                if file == File_name:
                        test = True
                        break
        if test == False:
                os.mkdir (File_name)
        os.chdir (Output_Dir + File_name)
